﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="list.aspx.cs" Inherits="appleader_result_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <div id="content">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                
                SelectCommand="SELECT project.projectid, project.projectname, project.createdtime, project.groupid, project.starttime, project.endtime, project.state, project.description, project.weighttype, model.modelid, model.modelname, method.methodid, method.methodname, users.username, users.realname FROM project INNER JOIN model ON project.modelid = model.modelid INNER JOIN method ON project.methodid = method.methodid INNER JOIN users ON project.creator = users.username WHERE (project.organizationid = @organizationid) AND (project.state = '有效的')">
                <SelectParameters>
                    <asp:SessionParameter Name="organizationid" SessionField="organizationid" 
                        Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
                GridLines="None" Width="100%">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:BoundField DataField="projectname" HeaderText="项目名称" 
                        SortExpression="projectname" ItemStyle-Width="120px" >
<ItemStyle Width="100px"></ItemStyle>
                    </asp:BoundField>
                    <asp:HyperLinkField DataNavigateUrlFields="username" 
                        DataNavigateUrlFormatString="~/appleader/users/viewUser.aspx?username={0}" 
                        DataTextField="realname" HeaderText="创建者" ItemStyle-Width="70px" >
<ItemStyle Width="70px"></ItemStyle>
                    </asp:HyperLinkField>
                    <asp:BoundField DataField="starttime" HeaderText="开始时间" 
                        SortExpression="starttime" ItemStyle-Width="80px" >
<ItemStyle Width="70px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="endtime" HeaderText="结束时间" 
                        SortExpression="endtime" >
                        <ItemStyle Width="70px" />
                    </asp:BoundField>
                    <asp:HyperLinkField DataNavigateUrlFields="modelid" 
                        DataNavigateUrlFormatString="~/appleader/model/viewModel.aspx?modelid={0}" 
                        DataTextField="modelname" HeaderText="模型名称" >
                        <ItemStyle Width="100px" />
                    </asp:HyperLinkField>
                    <asp:HyperLinkField DataNavigateUrlFields="methodid" 
                        DataNavigateUrlFormatString="~/appleader/method/viewMethod.aspx?methodid={0}" 
                        DataTextField="methodname" HeaderText="评估方法" >
                        <ItemStyle Width="100px" />
                    </asp:HyperLinkField>
                    <asp:BoundField DataField="description" HeaderText="描述" 
                        SortExpression="description" />
                    <asp:HyperLinkField DataNavigateUrlFields="projectid" 
                        DataNavigateUrlFormatString="~/appleader/result/viewResultSort.aspx?projectid={0}" 
                        HeaderText="结果" Text="展示>>" ItemStyle-ForeColor="Red">
                        <ItemStyle Width="35px" CssClass="bacimg1" ForeColor="Red" />
                    </asp:HyperLinkField>
                    
                </Columns>
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </div>
    
    </div>
    </form>
</body>
</html>
